lib: Reexport libc::AT_FDCWD
authorColin Walters <walters@verbum.org>
Thu, 9 Sep 2021 15:52:21 +0000 (11:52 -0400)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:57 +0000 (12:53 -0400)
Useful with `Repo::open_at()`.

Right now ostree-rs-ext pulls in libc for this and `fgetxattr`,
but the latter should go into nix.

rust-bindings/rust/src/lib.rs

index 28cf89ea6f07d0f1458db38e228f134794d4419d..41cdd58bd4f88bd75d6720e8b09c5cc23dd2c2c3 100644 (file)
@@ -16,6 +16,9 @@ pub use ffi;
 pub use gio;
 pub use glib;
 
+/// Useful with `Repo::open_at()`.
+pub use libc::AT_FDCWD;
+
 // code generated by gir
 #[rustfmt::skip]
 #[allow(clippy::all)]